import turtle as t

def color1():                            #红色
    t.pu()
    t.goto(600, -300)
    t.pd()
    t.begin_fill()
    t.right(-90)
    t.circle(700,180)
    t.right(-90)
    t.forward(50)
    t.pu()
    t.goto(600,-300)
    t.pd()
    t.right(180)
    t.forward(50)
    t.right(90)
    t.circle(650,180)
    t.fillcolor("red")
    t.end_fill()

def color2():                            #橙色
    t.begin_fill()
    t.pu()
    t.goto(550, -300)
    t.right(180)
    t.circle(650, 180)
    t.right(-90)
    t.forward(50)
    t.pu()
    t.goto(550,-300)
    t.pd()
    t.right(180)
    t.forward(50)
    t.right(90)
    t.circle(600,180)
    t.right(90)
    t.forward(50)
    t.fillcolor("orange")
    t.end_fill()

def color3():                            #黄色
    t.begin_fill()
    t.pu()
    t.goto(500, -300)
    t.right(90)
    t.circle(600, 180)
    t.goto(500, -300)
    t.pd()
    t.right(90)
    t.forward(50)
    t.right(90)
    t.circle(550, 180)
    t.right(90)
    t.forward(50)
    t.fillcolor("yellow")
    t.end_fill()

def color4():                           #绿色
    t.begin_fill()
    t.pu()
    t.goto(450, -300)
    t.right(90)
    t.circle(550, 180)
    t.goto(450, -300)
    t.pd()
    t.right(90)
    t.forward(50)
    t.right(90)
    t.circle(500, 180)
    t.right(90)
    t.forward(50)
    t.fillcolor("green")
    t.end_fill()

def color5():                            #蓝色
    t.begin_fill()
    t.pu()
    t.goto(400, -300)
    t.right(90)
    t.circle(500, 180)
    t.goto(400,-300)
    t.pd()
    t.right(90)
    t.forward(50)
    t.right(90)
    t.circle(450, 180)
    t.right(90)
    t.forward(50)
    t.fillcolor("blue")
    t.end_fill()

def color6():                            #靛色
    t.begin_fill()
    t.pu()
    t.goto(350, -300)
    t.right(90)
    t.circle(450, 180)
    t.goto(350,-300)
    t.pd()
    t.right(90)
    t.forward(50)
    t.right(90)
    t.circle(400, 180)
    t.right(90)
    t.forward(50)
    t.fillcolor("indigo")
    t.end_fill()

def color7():                            #紫色
    t.begin_fill()
    t.pu()
    t.goto(300, -300)
    t.right(90)
    t.circle(400, 180)
    t.goto(300,-300)
    t.pd()
    t.right(90)
    t.forward(50)
    t.right(90)
    t.circle(350, 180)
    t.right(90)
    t.forward(50)
    t.fillcolor("purple")
    t.end_fill()

t.speed(20)
color1()
color2()
color3()
color4()
color5()
color6()
color7()
t.done()


